package name.hankc.spring.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class PersonC {
  @Value("black-value-anno")
  private String name;

  @Value("18")
  private Integer age;

  @Override
  public String toString() {
    return "PersonC [age=" + age + ", name=" + name + "]";
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }
}
